﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByteSite.WinClient.Entitys
{
    public class WebSocketMessage
    {
        /// <summary>
        /// 
        /// </summary>
        private string _guid = "";
        public string Guid { get { return _guid; } set { _guid = value; } }

        /// <summary>
        /// 来源
        /// </summary>
        private string _from = "";
        public string From { get { return _from; } set { _from = value; } }

        /// <summary>
        /// 目的
        /// </summary>
        private string _to = "";
        public string To { get { return _to; } set { _to = value; } }

        /// <summary>
        /// 时间
        /// </summary>

        public DateTime Time { get; set; }

        /// <summary>
        /// 渠道
        /// </summary>
        private string _channel = "";
        public string Channel { get { return _channel; } set { _channel = value; } }

        /// <summary>
        /// 消息类型
        /// </summary>
        private string _type = "";
        public string MessageType { get { return _type; } set { _type = value; } }

        /// <summary>
        /// 消息
        /// </summary>

        private string _message = "";
        public string Message { get { return _message; } set { _message = value; } }

        /// <summary>
        /// 数据包
        /// </summary>
        private string _data = "";
        public string Data { get { return _data; } set { _data = value; } }

        /// <summary>
        /// 数据包数据量
        /// </summary>
        private int _data_no = 0;
        public int DataNo { get { return _data_no; } set { _data_no = value; } }

        /// <summary>
        /// 数据包数据量
        /// </summary>
        private int _data_count = 0;
        public int DataCount { get { return _data_count; } set { _data_count = value; } }
    }
}
